home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Applications
/
Python 1.3.3
/
Python 133 SRC
/
Mac
/
Modules
/
waste
/
wastegen.py
next >
Wrap
Text File
|
1996-05-19
|
9KB
|
451 lines
# Generated from ':::::Waste 1.2a5:WASTE C/C++ Headers:WASTE.h'
f = Function(OSErr, 'WENew',
(LongRect_ptr, 'destRect', InMode),
(LongRect_ptr, 'viewRect', InMode),
(unsigned_long, 'flags', InMode),
(WEReference, 'we', OutMode),
)
functions.append(f)
f = Method(Handle, 'WEGetText',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(short, 'WEGetChar',
(long, 'offset', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(long, 'WEGetTextLength',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(long, 'WECountLines',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(long, 'WEGetHeight',
(long, 'startLine', InMode),
(long, 'endLine', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEGetSelection',
(long, 'selStart', OutMode),
(long, 'selEnd', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEGetDestRect',
(LongRect, 'destRect', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEGetViewRect',
(LongRect, 'viewRect', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(Boolean, 'WEIsActive',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(long, 'WEOffsetToLine',
(long, 'offset', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEGetLineRange',
(long, 'lineNo', InMode),
(long, 'lineStart', OutMode),
(long, 'lineEnd', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WESetSelection',
(long, 'selStart', InMode),
(long, 'selEnd', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WESetDestRect',
(LongRect_ptr, 'destRect', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WESetViewRect',
(LongRect_ptr, 'viewRect', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(Boolean, 'WEContinuousStyle',
(WEStyleMode, 'mode', InOutMode),
(TextStyle, 'ts', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEGetRunInfo',
(long, 'offset', InMode),
(WERunInfo, 'runInfo', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(long, 'WEGetOffset',
(LongPt_ptr, 'thePoint', InMode),
(char, 'edge', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEGetPoint',
(long, 'offset', InMode),
(LongPt, 'thePoint', OutMode),
(short, 'lineHeight', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEFindWord',
(long, 'offset', InMode),
(char, 'edge', InMode),
(long, 'wordStart', OutMode),
(long, 'wordEnd', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEFindLine',
(long, 'offset', InMode),
(char, 'edge', InMode),
(long, 'lineStart', OutMode),
(long, 'lineEnd', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WECopyRange',
(long, 'rangeStart', InMode),
(long, 'rangeEnd', InMode),
(OptHandle, 'hText', InMode),
(OptStScrpHandle, 'hStyles', InMode),
(OptSoupHandle, 'hSoup', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(WEAlignment, 'WEGetAlignment',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WESetAlignment',
(WEAlignment, 'alignment', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WECalText',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEUpdate',
(RgnHandle, 'updateRgn', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEScroll',
(long, 'hOffset', InMode),
(long, 'vOffset', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WESelView',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEActivate',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEDeactivate',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEKey',
(short, 'key', InMode),
(EventModifiers, 'modifiers', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEClick',
(Point, 'hitPt', InMode),
(EventModifiers, 'modifiers', InMode),
(unsigned_long, 'clickTime', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(Boolean, 'WEAdjustCursor',
(Point, 'mouseLoc', InMode),
(RgnHandle, 'mouseRgn', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEIdle',
(unsigned_long, 'maxSleep', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WEInsert',
(InBuffer, 'pText', InMode),
(OptStScrpHandle, 'hStyles', InMode),
(OptSoupHandle, 'hSoup', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WEDelete',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WESetStyle',
(WEStyleMode, 'mode', InMode),
(TextStyle_ptr, 'ts', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WEUseStyleScrap',
(StScrpHandle, 'hStyles', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WEUseText',
(Handle, 'hText', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WEUndo',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEClearUndo',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(WEActionKind, 'WEGetUndoInfo',
(Boolean, 'redoFlag', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(Boolean, 'WEIsTyping',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(unsigned_long, 'WEGetModCount',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(void, 'WEResetModCount',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WEInsertObject',
(FlavorType, 'objectType', InMode),
(Handle, 'objectDataHandle', InMode),
(Point, 'objectSize', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WEGetSelectedObject',
(WEObjectReference, 'obj', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(long, 'WEFindNextObject',
(long, 'offset', InMode),
(WEObjectReference, 'obj', OutMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WEUseSoup',
(WESoupHandle, 'hSoup', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method2(FlavorType, 'WEGetObjectType',
(WEObjectReference, 'obj', InMode),
)
methods2.append(f)
f = Method2(Handle, 'WEGetObjectDataHandle',
(WEObjectReference, 'obj', InMode),
)
methods2.append(f)
f = Method2(Point, 'WEGetObjectSize',
(WEObjectReference, 'obj', InMode),
)
methods2.append(f)
f = Method2(ExistingWEReference, 'WEGetObjectOwner',
(WEObjectReference, 'obj', InMode),
)
methods2.append(f)
f = Method2(long, 'WEGetObjectRefCon',
(WEObjectReference, 'obj', InMode),
)
methods2.append(f)
f = Method2(void, 'WESetObjectRefCon',
(WEObjectReference, 'obj', InMode),
(long, 'refCon', InMode),
)
methods2.append(f)
f = Method(OSErr, 'WECut',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WECopy',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(OSErr, 'WEPaste',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(Boolean, 'WECanPaste',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(RgnHandle, 'WEGetHiliteRgn',
(long, 'rangeStart', InMode),
(long, 'rangeEnd', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(short, 'WECharByte',
(long, 'offset', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(short, 'WECharType',
(long, 'offset', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Function(OSErr, 'WEInstallTSMHandlers',
)
functions.append(f)
f = Function(OSErr, 'WERemoveTSMHandlers',
)
functions.append(f)
f = Method(void, 'WEStopInlineSession',
(WEReference, 'we', InMode),
)
methods.append(f)
f = Method(short, 'WEFeatureFlag',
(short, 'feature', InMode),
(short, 'action', InMode),
(WEReference, 'we', InMode),
)
methods.append(f)
f = Function(void, 'WELongPointToPoint',
(LongPt_ptr, 'lp', InMode),
(Point, 'p', OutMode),
)
functions.append(f)
f = Function(void, 'WEPointToLongPoint',
(Point, 'p', InMode),
(LongPt, 'lp', OutMode),
)
functions.append(f)
f = Function(void, 'WESetLongRect',
(LongRect, 'lr', OutMode),
(long, 'left', InMode),
(long, 'top', InMode),
(long, 'right', InMode),
(long, 'bottom', InMode),
)
functions.append(f)
f = Function(void, 'WELongRectToRect',
(LongRect_ptr, 'lr', InMode),
(Rect, 'r', OutMode),
)
functions.append(f)
f = Function(void, 'WERectToLongRect',
(Rect_ptr, 'r', InMode),
(LongRect, 'lr', OutMode),
)
functions.append(f)
f = Function(void, 'WEOffsetLongRect',
(LongRect, 'lr', OutMode),
(long, 'hOffset', InMode),
(long, 'vOffset', InMode),
)
functions.append(f)
f = Function(Boolean, 'WELongPointInLongRect',
(LongPt_ptr, 'lp', InMode),
(LongRect_ptr, 'lr', InMode),
)
functions.append(f)